package com.project_test.kun.travelling_1st.HomePage.category;

import org.json.JSONException;
import org.json.JSONObject;

/**
 *  Created by Administrator on 16-10-17.
 */
public class HomePListItemButton {

    private int button_id;
    private String icon;
    private String name;
    private int link_type;
    private int item_id;
    private String desc;

    public void pashJson(JSONObject json) throws JSONException {
//        "button_id": "13",
        button_id = json.optInt("button_id");
//                "icon": "http://img2.handybest.com/Uploads/indexButton/20160516/14633718843884.jpg!phone",
        icon = json.getString("icon");
//                "name": "住民宿",
        name = json.getString("name");
//                "link_type": "20",
        link_type = json.optInt("link_type");
//                "item_id": "0",
        item_id = json.optInt("item_id");
//                "desc": "住民宿"
        desc = json.optString("desc");
    }

    public int getButton_id() {
        return button_id;
    }

    public String getIcon() {
        return icon;
    }

    public String getName() {
        return name;
    }

    public int getLink_type() {
        return link_type;
    }

    public int getItem_id() {
        return item_id;
    }

    public String getDesc() {
        return desc;
    }
}
